﻿<base:ControlBase x:Class="Rio.Framework.Pages.Workflow.WorkflowStateCustomFilter"
                  xmlns:base="clr-namespace:Rio.Framework.Pages"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                  xmlns:controls="clr-namespace:Rio.Framework.Pages.Controls"
                  mc:Ignorable="d"
                  xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
                  x:Name="FilterState"
                  d:DesignHeight="300" d:DesignWidth="400">
    <Grid x:Name="LayoutRoot">
        <Border BorderThickness="1" BorderBrush="#FF8A929E" Padding="5" Background="#FFCED8E2">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="20" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <TextBlock Grid.Column="0" Grid.Row="0"  Text="Voir les flux à l'état:" Margin="5,0,0,0" FontStretch="Normal" VerticalAlignment="Center" FontWeight="Bold" TextDecorations="Underline"/>
                <controls:CheckboxList x:Name="CheckboxList" Grid.Column="0" Grid.Row="1" ItemSelectionChanged="CheckboxList_ItemSelectionChanged" DataContext="{Binding Items, ElementName=FilterState, Mode=TwoWay}" Margin="5,5,5,0" />
                
                <StackPanel Grid.Column="0" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,10,0,0">
                    <telerik:RadButton Name="filterButton" Content="Filtrer" Click="OnFilter" Margin="2" Width="80"/>
                    <telerik:RadButton Name="clearButton" Content="Effacer" Click="OnClear" Margin="2" Width="80"/>
                </StackPanel>
            </Grid>
        </Border>

    </Grid>
</base:ControlBase>
